package code1;

import java.util.Scanner;

public class student {
    String sno;
    String sname;
    String sdept;

    void input() {
        Scanner sc = new Scanner(System.in);
        String arr1[] = sc.nextLine().split(" ");
        sno = arr1[0];
        if (arr1.length == 2) {
            sname = arr1[1];
        }
        if (arr1.length == 3) {
            sname = arr1[1];
            sdept = arr1[2];
        }
    }
}
